<template>
    <div>
      <p>正在获取数据...</p>
    </div>
  </template>
  
  <script>
  import request from '@/utils/request'
  
  export default {
    mounted() {
      this.initData();
    },
    methods: {
        initData() {
                this.listLoading = true;
                request({
                    url: `/api/tongcheng/SyncEmployeeInfo`,
                    method: 'GET',
                    data: {"plat":"0"}
                }).then(res => {
                    //获取返回数据，跳转到返回的url
                    const url = res.msg;
                    console.log(url);
                    window.open(url);
            })
        }
    }
    
  };
  </script>
  